import App from './App'
import moment from 'moment'
// #ifndef VUE3
import Vue from 'vue'
import api from '@/common/api.js'
Vue.prototype.$api = api
import store from './store'
//把vuex定义成全局组件
Vue.prototype.$store = store
import uView from "uview-ui";
Vue.use(uView);
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App,
	store
})
Vue.filter('dateFormat',date=>{
     return moment(date).format('YYYY-MM-DD HH:mm:ss')
 })
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
